package cn.bookCity.service;

import java.util.List;

import cn.bookCity.Exception.MyException;
import cn.bookCity.domain.User;

public interface UserService {
	
	
    public void regist(User user) throws MyException ;
	
	public void active(String code)throws MyException;
	
	public User login(String username ,String password);
	
	public User checkUser(String username );
	
	public User checkEmail(String email );
	
	public List<User> get();

	public void del(String uid);

	public User findUserByNameAndPwd(String username, String password);

}
